<?php
/**
 * @file $HeadURL: keyword.php $
 * @author $Author: Jim.chou (zhouzhe@haibao.com) $
 * @date $Date: 2015-3-28 15:19:18 $
 * @brief 
 */
namespace haibao\cms\data;


class Question extends \haibao\cms\data\BaseMysql{
	
	public function __construct(){
		parent::__construct('\haibao\cms\model\data\question');
	}
	
	public function getCacheCountByIp($ip){
		$cache = new \haibao\cms\cache\Question();
		return $cache->getCacheCountByIp($ip);
	}
	
	public function setCacheIpCount($ip, $count){
		$cache = new \haibao\cms\cache\Question();
		$cache->setCacheIpCount($ip, $count);
	}
	
	public function getModelById($linkId){
		return $this->getOneById($linkId);
	}
	
	public function getQuestionList($questionFilter){
		return parent::getAll($questionFilter);
	}
	
	public function delQuestion($id,$status){
		$this->updateById($id, array("Status"=>$status));
	}
	
}